//
//  XJNetWorkRequestManager.h
//  EPA
//
//  Created by lanou3g on 16/4/15.
//  Copyright © 2016年 ZhangXJ. All rights reserved.
//

#import <Foundation/Foundation.h>

//定义枚举
typedef NS_ENUM(NSInteger) {
    Request_GET,
    Request_POST
}URLRequestMethod;

//定义网络请求返回的结果 Block块
typedef void(^ResultBlock)(NSData *data,NSURLResponse *response,NSError *error);


@interface XJNetWorkRequestManager : NSObject


//请求方法 -- 使网络请求变得简便
+ (void)RequestWithURL:(NSURL *)url andMethod:(URLRequestMethod)method andParams:(NSDictionary *)param andResult:(ResultBlock)resultBlock;


@end
